package com.ruoyi.product.domain;

import com.ruoyi.product.domain.ProductDetail;
import com.ruoyi.product.domain.ProductType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 规格详情对象 product_detail_type
 * 
 * @author guoguoa
 * @date 2025-01-06
 */
public class ProductDetailType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Integer productDetailId;

    /** 规格编号 */
    @Excel(name = "规格编号")
    private Integer productTypeId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer del;

    /** 商品详情（一对一） */
    @Excel(name = "商品详情")
    private ProductDetail productDetail;

    /** 商品规格（一对一） */
    @Excel(name = "商品规格")
    private ProductType productType;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setProductDetailId(Integer productDetailId) 
    {
        this.productDetailId = productDetailId;
    }

    public Integer getProductDetailId() 
    {
        return productDetailId;
    }
    public void setProductTypeId(Integer productTypeId) 
    {
        this.productTypeId = productTypeId;
    }

    public Integer getProductTypeId() 
    {
        return productTypeId;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public ProductDetail getProductDetail() {
        return productDetail;
    }

    public void setProductDetail(ProductDetail productDetail) {
        this.productDetail = productDetail;
    }

    public ProductType getProductType() {
        return productType;
    }

    public void setProductType(ProductType productType) {
        this.productType = productType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productDetailId", getProductDetailId())
            .append("productTypeId", getProductTypeId())
            .append("productDetail", getProductDetail())
            .append("productType", getProductType())
            .append("del", getDel())
            .toString();
    }
}
